]> dgit.raspbian.org Git - gnome-shell.git/commit
windowManager: Remove timeout on starting X11 services
authorOlivier Fourdan <ofourdan@redhat.com>
Tue, 15 Jun 2021 06:50:56 +0000 (08:50 +0200)
committerOlivier Fourdan <ofourdan@redhat.com>
Tue, 15 Jun 2021 09:24:59 +0000 (11:24 +0200)
commit8be5d336118b5403e04fc16bc2017f8915b787c9
tree546bc60808b2bbe71b270131288e2e43f4ce3ed3
parent8d042459eeffac0e12b7bc1c4f9214c143aa801e
windowManager: Remove timeout on starting X11 services

With Xwayland started on demand, mutter/gnome-shell will spawn Xwayland
and GNOME settings daemon Xsettings.

Currently, gnome-shell uses a timeout of 5 seconds before canceling the
launch and declare failure to start X11 services.

While 5 seconds may seem like a lot of time, when this is executed on a
virtual machine part of a QA tests under load, this causes random
failures.

There is no good value here, we could increase the timeout but it will
always remain racy. Instead, remove the timeout, systemd itself already
has a timeout mechanism (with a much longer wait time).

Thanks to Benjamin Berg <bberg@redhat.com> for finding the root cause
and suggesting the fix.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1888>
js/ui/windowManager.js